package mode.singleton.ehs;

/**
 * 饿汉式单例模式测试
 *
 * @author xjx
 * @date 2023/7/17 15:44
 */
public class MainTest {

    public static void main(String[] args) {
        SingletonDemo instance = SingletonDemo.getInstance();
        SingletonDemo instance1 = SingletonDemo.getInstance();
        System.out.println(instance == instance1);
    }
}
